﻿@model MusicStore.Models.Order
@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm())

{
    @Html.AntiForgeryToken()
    <div>
        <h4>当前订单</h4>
    </div>
    @Html.ValidationSummary(true, "")
    <div>
        @Html.LabelFor(model => model.OrderId, "订单编号")
        <div>
            @Html.EditorFor(model => model.OrderId)
            @Html.ValidationMessageFor(model => model.OrderId)
        </div>
    </div>
        <div>
            @Html.LabelFor(model => model.OrderDate, "订购日期")
            <div>
                @Html.EditorFor(model => model.OrderDate)
                @Html.ValidationMessageFor(model => model.OrderDate)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.FirstName, "名")
            <div>
                @Html.EditorFor(model => model.FirstName)
                @Html.ValidationMessageFor(model => model.FirstName)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.LastName, "姓")
            <div>
                @Html.EditorFor(model => model.LastName)
                @Html.ValidationMessageFor(model => model.LastName)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.Address, "区")
            <div>
                @Html.EditorFor(model => model.Address)
                @Html.ValidationMessageFor(model => model.Address)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.City, "市")
            <div>
                @Html.EditorFor(model => model.City)
                @Html.ValidationMessageFor(model => model.City)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.Country, "国家")
            <div>
                @Html.EditorFor(model => model.Country)
                @Html.ValidationMessageFor(model => model.Country)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.Phone, "手机号")
            <div>
                @Html.EditorFor(model => model.Phone)
                @Html.ValidationMessageFor(model => model.Phone)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.Email, "电子邮件")
            <div>
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>
        </div>
        <div>
            @Html.LabelFor(model => model.Total, "总数")
            <div>
                @Html.EditorFor(model => model.Total)
                @Html.ValidationMessageFor(model => model.Total)
            </div>
        </div>

}

<div>
    @Html.ActionLink("返回", "Create")
</div>
